package com.edgar.designpattern.proxy.order;

public class ProductData {

    private String name;
    private int price;
    private String sku;

    public ProductData() {
    }

    public ProductData(String name, int price, String sku) {
        this.name = name;
        this.price = price;
        this.sku = sku;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getSku() {
        return sku;
    }

    public void setSku(String sku) {
        this.sku = sku;
    }

    @Override
    public boolean equals(Object obj) {
        ProductData pd = (ProductData) obj;
        return name.equals(pd.getName()) && sku.equals(pd.getSku())
                && price == pd.getPrice();
    }
}
